//
//  HWWuKongModel.swift
//  HWanGame
//
//  Created by Apple on 2024/8/8.
//  Copyright © 2024 94Wan. All rights reserved.
//

import Foundation
import KakaJSON
import HandyJSON

struct HWWuKongCateModel: Convertible {

    var title = ""
    var type = 0
    var isSel = false
}

class HWWuKongHotChatModel: HandyJSON {
    required init() {}
    
    var data: [HWWuKongDataModel]?
    var banners: [HWHomeInfoBannerModel]?
    var shequ_id = ""
}

class HWWuKongDataModel: HandyJSON {
    required init() {}
    
    var gid = 0
    var id = 0
    var type = 0
    var primary_id = 0
//    var data: HWWuKongInfoModel?
    var data: HWGameCircleModel?
}

class HWWuKongInfoModel: HandyJSON {
    required init() {}
    
    var uid = 0
    var id = 0
    var content = ""
    var title = ""
    var face = ""
    var image = ""
    var pinglun = ""
    var zan = ""
    var look = ""
    var pet_name = ""
}

class HWNewHomeModel: HandyJSON {
    required init() {}
    
    var slide: [HWHomeInfoBannerModel]?
    var data: [HWNewHomeGameModel]?
    var newgame_top: [HWNewHomeGameModel]?
    var tuijian: [HWNewHomeGameModel]?
    var remen: [HWNewHomeGameModel]?
    var newgame_later: [HWNewHomeGameModel]?
    var gongneng: [HWNewHomeGameModel]?
}

class HWNewHomeGameModel: HandyJSON {
    required init() {}
    
    var id = 0
    var name = ""
    var icon = ""
    var point = 0.0
    var image = ""
    var biaoqian = [String]()
    var pay = ""
    var summary = ""
    var login = 0
    var type = ""
    var sort = 0 //排序，自定
}

//社区Model
class HWStrategyModel: HandyJSON {
    required init() {}
    
    var blocks: [HWStrategyBlockModel]?
    var data: [HWGameCommunityListModel]?
}

class HWStrategyBlockModel: HandyJSON {
    required init() {}
    
    var id = 0
    var name = ""
    var shequ_id = 0
    var sortby = 0
    var image = 0 //是否有图片
    var news: [HWStrategyBlockItemModel]?
}

class HWStrategyBlockItemModel: HandyJSON {
    required init() {}
    
    var news_id = 0
    var title = ""
    var image = ""
}

//资讯评论
class HWInfoCommentListModel: HandyJSON {
    required init() {}
    ///
    var id = ""
    ///
    var uid = ""
    /// 时间
    var time = ""
    /// 评论内容
    var content = ""
    ///
    var pid = ""
    /// 点赞数
    var zan = ""
    ///
    var puid = ""
    ///
    var down: [HWInfoCommentListModel]?
    
    var user: HWInfoCommentUserModel?
    
    var is_zan = 0
}

class HWInfoCommentUserModel: HandyJSON {
    required init() {}
    ///
    var face = ""
    ///
    var user_name = ""
}

//report
struct HWReportModel: Convertible {
    ///
    var title = ""
    ///
    var isSel = false
}
